#include <iostream>
#include <cstring>
#include <cstdio>
char a[100000], b[100000], c[100000];
using namespace std;

int main() {
	int i, j = 0, k = 0;
	gets(a);
	int len = strlen(a);
	for (i = 0; i < len; i++) {
		if (a[i] >= '0' && a[i] <= '9') {
			b[j] = a[i];
			j++;
		} else {
			c[k] = a[i];
			k++;
		}
	}
	for (i = 0; i < k / 2; i++)
		cout << c[i];
	for (i = 0; i < j; i++)
		cout << b[i];
	for (i = k / 2; i < k; i++)
		cout << c[i];
	return 0;
}